package com.ruoyi.system.domain.aggregation;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 user
 * 
 * @author ruoyi
 * @date 2025-01-01
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 用户类型：1、c端用户2、业务员3、商家4、区域代理5、总公司 */
    @Excel(name = "用户类型", readConverterExp = "1=c端用户,2=业务员,3=商家,4=区域代理,5=总公司")
    private Integer type;

    /** 登陆密码 */
    private String password;

    /** 电话号码 */
    @Excel(name = "电话号码")
    private String phone;

    /** 用户头像URL */
    @Excel(name = "用户头像")
    private String avatar;

    /** 邮箱地址 */
    @Excel(name = "邮箱地址")
    private String email;

    /** 身份证号码 */
    @Excel(name = "身份证号码")
    private String idNo;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 身份证正面照片地址 */
    private String idCardUrl;

    /** 身份证背面图片地址 */
    private String idCardBackUrl;

    /** 营业执照地址 */
    private String certificateUrl;

    /** 卫生许可证照片url */
    private String hygienicUrl;

    /** 商家锁定用户数量 */
    @Excel(name = "商家锁定用户数量")
    private Integer lockNum;

    /** 商家锁定用户数量上限 */
    @Excel(name = "商家锁定用户数量上限")
    private Integer lockNumLimit;

    /** 业务员编码 */
    @Excel(name = "业务员编码")
    private String salesmanNo;

    /** 商家id */
    private Long merchantId;

    /** 所属区域代理id */
    private Long regionId;

    /** 删除标志，0未删除，1删除 */
    private Integer deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public void setIdNo(String idNo) 
    {
        this.idNo = idNo;
    }

    public String getIdNo() 
    {
        return idNo;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setIdCardUrl(String idCardUrl) 
    {
        this.idCardUrl = idCardUrl;
    }

    public String getIdCardUrl() 
    {
        return idCardUrl;
    }

    public void setIdCardBackUrl(String idCardBackUrl) 
    {
        this.idCardBackUrl = idCardBackUrl;
    }

    public String getIdCardBackUrl() 
    {
        return idCardBackUrl;
    }

    public void setCertificateUrl(String certificateUrl) 
    {
        this.certificateUrl = certificateUrl;
    }

    public String getCertificateUrl() 
    {
        return certificateUrl;
    }

    public void setHygienicUrl(String hygienicUrl) 
    {
        this.hygienicUrl = hygienicUrl;
    }

    public String getHygienicUrl() 
    {
        return hygienicUrl;
    }

    public void setLockNum(Integer lockNum) 
    {
        this.lockNum = lockNum;
    }

    public Integer getLockNum() 
    {
        return lockNum;
    }

    public void setLockNumLimit(Integer lockNumLimit) 
    {
        this.lockNumLimit = lockNumLimit;
    }

    public Integer getLockNumLimit() 
    {
        return lockNumLimit;
    }

    public void setSalesmanNo(String salesmanNo) 
    {
        this.salesmanNo = salesmanNo;
    }

    public String getSalesmanNo() 
    {
        return salesmanNo;
    }

    public void setMerchantId(Long merchantId) 
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId() 
    {
        return merchantId;
    }

    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }

    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("password", getPassword())
            .append("phone", getPhone())
            .append("avatar", getAvatar())
            .append("email", getEmail())
            .append("idNo", getIdNo())
            .append("address", getAddress())
            .append("idCardUrl", getIdCardUrl())
            .append("idCardBackUrl", getIdCardBackUrl())
            .append("certificateUrl", getCertificateUrl())
            .append("hygienicUrl", getHygienicUrl())
            .append("lockNum", getLockNum())
            .append("lockNumLimit", getLockNumLimit())
            .append("salesmanNo", getSalesmanNo())
            .append("merchantId", getMerchantId())
            .append("regionId", getRegionId())
            .append("deleted", getDeleted())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}

